package com.zhuizikejithreeig.cn.weigit;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.zhuizikejithreeig.cn.threeigkeji.R;


/**
 * Created by 赵航 on 2018/3/4.
 */

public class MyButtonView extends LinearLayout {

    private TextView mTextView;
    private LinearLayout mLinearLayout;

    public LinearLayout getLinearLayout() {
        return mLinearLayout;
    }
    public TextView getTextView() {
        return mTextView;
    }

    public void setTextView(TextView textView) {
        this.mTextView = textView;
    }

    public MyButtonView(Context context) {
        this(context,null);
    }

    public MyButtonView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);

        View myView = View.inflate(context, R.layout.mybuttonview, this);
        mTextView = (TextView) myView.findViewById(R.id.text);
        mLinearLayout = (LinearLayout) myView.findViewById(R.id.light_button);


    }

    public MyButtonView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        this(context,null);
    }
}
